package com.jk.controller;

import com.jk.entity.DetailsEntity;
import com.jk.entity.RechargeableEntity;
import com.jk.service.RechargeableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author 纪思齐
 * @version 1.0
 * @BelongsProject: 2203java-financial
 * @BelongsPackage: com.jk.controller
 * @description: TODO    充值表查询-financial_details_money
 * @date 2022/11/3 21:05
 */
@RestController
@RequestMapping("rechargeable")
public class RechargeableController {

    @Autowired
    private RechargeableService rechargeableService;

    /*
     * @description:  查询充值类型
     * @author: 纪思齐
     * @date: 2022/11/3 21:18
     * @param: []
     * @return: java.util.List<com.jk.entity.DetailsEntity>
     **/
    @RequestMapping("findTypeList")
    public List<DetailsEntity> findTypeList(){
        return rechargeableService.findTypeList();
    }

    /*
     * @description:  查询充值表
     * @author: 纪思齐
     * @date: 2022/11/4 10:05
     * @param: [rechargeableEntity]
     * @return: java.util.Map
     **/
    @RequestMapping("getRechargeableList")
    public Map  getRechargeableList(RechargeableEntity rechargeableEntity){
        return rechargeableService.getRechargeableList(rechargeableEntity);
    }
}
